<form class="layui-form model-form" action="">
    <input name="id" id="id" type="hidden" value="{$info.id|default=0}">
    <input name="type" id="type" type="hidden" value="{$type|default=1}">
    <input name="patent_id" id="patent_id" type="hidden" value="{$patent_id|default=0}">

    <!-- {empty name="$info"}  -->       
    <div class="layui-form-item">
        <label class="layui-form-label">文件地址：</label>
        <div class="layui-input-block">
        {upload:file name="url|文件|1|xls,xlsx|''" fileName="isset($info['url_name']) ? $info['url_name'] : ''" 
                filePath="isset($info['url']) ? $info['url'] : ''"}

        </div>
    </div>
<!--     {else}
    <div class="layui-form-item">
        <label class="layui-form-label">文件名称：</label>
        <div class="layui-input-block">     
            <input name="url_name" value="{$info['url_name']|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入文件名称" class="layui-input" type="text">     
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">文件地址：</label>
        <div class="layui-input-block">     
            <input name="url" value="{$info['url']|default=''}" lay-verify="required" autocomplete="off" placeholder="请输入文件地址" class="layui-input" type="text">     
        </div>
    </div>
    {/empty} -->

        
    {widget:submit name="submit|立即保存,close|关闭"}
</form>